package com.kkb.service;

import com.kkb.dao.UserDao;
import com.kkb.pojo.User;

import java.sql.SQLException;

public class UserService {
    UserDao userDao = new UserDao();
    public void registerHandler(User user) throws SQLException {
        userDao.registerInsert(user);
        System.out.println(user);
    }

    public User loginHandler(String username, String password) {
        return  userDao.loginQuerry(username,password);
    }
}
